package com.itheima;

import com.itheima.dao.AccountDao;
import com.itheima.service.AccountService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 */
public class App2 {
    public static void main(String[] args) {

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans2.xml");


        AccountService accountService1 = context.getBean(AccountService.class);
        AccountService accountService2 = context.getBean(AccountService.class);
        AccountService accountService3 = context.getBean(AccountService.class);
        AccountService accountService4 = context.getBean(AccountService.class);

        System.out.println("~~~~~~~~~~~~~~~~~~");
    }
}
